/**
 * @filename:CourseSubCourseServiceImpl Course
 * @project constract  V1.0
 * Copyright(c) 2018 gong Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znufe.exam.domain.CourseSubCourse;
import com.znufe.exam.repository.CourseSubCourseMapper;
import com.znufe.exam.service.CourseSubCourseService;

/**   
 *  
 * @Description:  课程表——SERVICEIMPL
 * @Author:       gong   
 * @CreateDate:   Course
 * @Version:      V1.0
 *    
 */
@Service
public class CourseSubCourseServiceImpl implements CourseSubCourseService {
	
	@Autowired
	public CourseSubCourseMapper courseSubCourseMapper;
	
	//查询对象
	@Override
	public CourseSubCourse selectByPrimaryKey(Integer id) {
		return courseSubCourseMapper.selectByPrimaryKey(id);
	}
	
	//删除对象
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return courseSubCourseMapper.deleteByPrimaryKey(id);
	}
	
	//添加对象
	@Override
	public int insertSelective(CourseSubCourse courseSubCourse) {
		return courseSubCourseMapper.insertSelective(courseSubCourse);
	}
	
	//修改对象
	@Override
	public int updateByPrimaryKeySelective(CourseSubCourse courseSubCourse) {
		return courseSubCourseMapper.updateByPrimaryKeySelective(courseSubCourse);
	}
	
	//查询集合
	@Override
	public List<CourseSubCourse> queryCourseSubCourseList(CourseSubCourse courseSubCourse) {
		return courseSubCourseMapper.queryCourseSubCourseList(courseSubCourse);
	}

    @Override
    public List<Integer> getAllSubCourseId(Integer courseId) {
        return courseSubCourseMapper.getAllSubCourseId(courseId);
    }

    @Override
    public int deleteByCourseId(Integer courseId) {
        return courseSubCourseMapper.deleteByCourseId(courseId);
    }
}